package indi.zhifa.recipe.bailan5.coupon.handler;


import indi.zhifa.recipe.bailan.framework.queue.bean.RedisConsumerMap;
import indi.zhifa.recipe.bailan.framework.queue.handler.RedisConsumer;
import org.springframework.stereotype.Component;

@Component
public class RedisConsumerMapImpl extends RedisConsumerMap {

    final CouponMsgListener mCouponMsgListener;

    final MsgErrorHandler mMsgErrorService;

    public RedisConsumerMapImpl(CouponMsgListener pCouponMsgListener,
                                MsgErrorHandler pMsgErrorService){
        super();
        mCouponMsgListener = pCouponMsgListener;
        mMsgErrorService = pMsgErrorService;
        consumerMap.put("defaultConsumer",new RedisConsumer(mCouponMsgListener,mMsgErrorService));
    }
}
